<?php
   include("./dbconn.php");
//    $pageSize=12;
   

    
    $sql="select * from huali";
    
    $result=$conn->query($sql);
    if($result->num_rows>0){
        while($row=mysqli_fetch_assoc($result)){
            $list[]=$row;
        }
        $data["code"]=0;
        $data["list"]=$list;
    }else{
        $data["code"]=1;
    }
    echo json_encode($data);
?>